<template>
    <div>
        根组件--{{ msg }}
        <router-link to="/home">首页</router-link>
        <router-link to="/category">分类</router-link>
        <!-- 一级路由的坑 -->
        <router-view></router-view>
    </div>
</template>
<script>
export default {
    data() {
        return {
            msg: 'hello vue'
        }
    }
}
</script>
<style scoped></style>